<?php

if (isset($_POST['heure'])  && isset($_POST['date']) )
{

include_once("connect.php");

foreach ($_POST['heure'] as $heure)
{
mysql_query("INSERT INTO `forgeoia`.`ap3_sp_rdv` 
VALUES (
NULL , '".$_POST['date']."', '".$heure."', '0', 'verouiller par l\'administrateur','valide','0'
);");

}
}
 header ("location: .?page=".$_POST['page']);
?>